<div class="redtop">
  <div class="container">
    <div class="row">
      <div class="col-lg-4 col-lg-offset-4 col-sm-6 col-sm-offset-3">
        <h1>Sign in</h1>
        <%= devise_error_messages! %>
        <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
          <div class="form-group">
            <%= f.label :email %>
            <%= f.email_field :email, value: current_email, :autofocus => true, :class => 'form-control', :required => 'required' %>
          </div>
          <div class="form-group">
            <%= f.label :password %>
            <%= f.password_field :password, :class => 'form-control', :required => 'required' %>
          </div>

          <div class="form-group">
            <% if devise_mapping.rememberable? -%>
              <%= f.check_box :remember_me %> <%= f.label :remember_me %>
            <% end -%>
          </div>

          <div><%= f.submit "Sign in", :class => 'btn btn-default' %></div>
        <% end %>
        <%= render "devise/shared/links" %>
      </div>
    </div>
  </div>
</div>
